<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Phongcachgo.com</title>
<link href="../stylesheets/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
	//Code jquery slide image page home
	<c:import url="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/slideHome.action" />
	var index=0; 
	var slideImage=function(srcImg){
		$('#imageSlide').attr('src',srcImg);
		if($('#imageSlide').css("opacity")==1){
			$('#imageSlide').fadeTo(4000,0,function(){
				index=index+1;
				if(index==arrlink.length){index=0;}
				slideImage(arrlink[index]);
			});	
		}else{
			$('#imageSlide').fadeTo(3000,1,function(){
				slideImage(arrlink[index]);
			});
		}
	};

	
	
	$(document).ready(function(){
		
		slideImage(arrlink[index]);
		
	});
</script>

</head>
<body>
<div id="wrapper">
	<jsp:include page="header.jsp" />
	<div id="content">
		<jsp:include page="menuleft.jsp" />
		<div id="colRight">
			<div id="slide-gallery">
				<div class="title-slide">
					<div><h2>Slide Ảnh Đẹp</h2></div>
				</div>
				<br />
				<center>
				<div id="image-big">
					<img id="imageSlide" width="740px" height="334px" />
				</div>
				</center>
			</div>
			<br />
			<c:import url="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/getSalestProducts.action" />
			<c:import url="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/getNewsProducts.action" />
		</div>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<jsp:include page="footer.jsp" />
</div>
</body>
</html>